namespace ChumChase.FriendFeed
{
    using System;
    using Caliburn.Core;
    using Model;

    [Serializable]
    public class FriendFeedSettings : PropertyChangedBase, IFeedProviderSettings
    {
        private string _nickname;
        private string _remoteKey;

        public string Nickname
        {
            get { return _nickname; }
            set
            {
                _nickname = value;
                NotifyOfPropertyChange("Nickname");
            }
        }

        public string RemoteKey
        {
            get { return _remoteKey; }
            set
            {
                _remoteKey = value;
                NotifyOfPropertyChange("RemoteKey");
            }
        }

        public bool IsValid()
        {
            return !string.IsNullOrEmpty(Nickname)
                   && !string.IsNullOrEmpty(RemoteKey);
        }
    }
}